﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace JTicket.UI
{
    public partial class S_CustomeAdd : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                Bind();
        }
        void Bind()
        {
            List<Model.C_CodeNote> codenote = DAL.C_CodeNote.GetListAllByGroupCod("WorkType");
            if (codenote.Count > 0)
            {
                this.work.DataSource = codenote;
                this.work.DataTextField = "CodeNote";
                this.work.DataValueField = "CodeVal";
                this.work.DataBind();
            }
        }
    }
}